package com.iraeta.dao.main;

import com.iraeta.entity.main.ErpCurrentStore;
import com.iraeta.entity.main.vo.ErpCurrentStoreVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.HashMap;
import java.util.List;

@Repository
public interface ErpCurrentStoreDao {
    int insert(ErpCurrentStore record);
    int updateByPrimaryKey(ErpCurrentStore record);
    int updateQuantityByPrimaryKey(ErpCurrentStore record);
    int updatePdByPrimaryKey(ErpCurrentStore record);
    int clearKc(@Param("cwhname") String cwhname);
    int clearSelectKc(@Param("ids") String ids);
    int addPrintCount(Long autoid);
    int deleteByPrimaryKey(Long autoid);
    ErpCurrentStore selectByPrimaryKey(Long autoid);
    ErpCurrentStore selectByCwhcodeAndInvCode(@Param("cwhcode") String cWhCode, @Param("cinvcode") String cInvCode);
    List<ErpCurrentStore> selectByConditionForPrint(ErpCurrentStoreVo erpCurrentStoreVo);
    List<ErpCurrentStore> selectByCondition(ErpCurrentStoreVo erpCurrentStoreVo);
    List<HashMap<String,Object>> listWh();
}